/**
 * @查询对象
 */
export const departmentSearchEntity = {
  companyName:"",//企业或部门名称
  leader:"",//企业或部门负责人
  phone:"",//负责人联系电话
};

/**
 * @新增对象
 */
export const departmentAddEntity = {
  parentId: null, //父部门ID
  companyName: null, //部门名称
  leader: null, //部门负责人
  phone: null, //联系电话
  pcdCode: [], //省市区Code码,用于收集级联记录
  provinceCode: null, //省Code
  cityCode: null, //市Code
  districtCode: null, //区Code
  address: null, //详细地址
  isEnable: true, //启用状态
  sort: 1, //排序
};

/**
 * @修改对象
 */
export const departmentUpdateEntity = {
  parentId: null, //父部门ID
  companyName: null, //部门名称
  leader: null, //部门负责人
  phone: null, //联系电话
  pcdCode: [], //省市区Code码,用于收集级联记录
  provinceCode: null, //省Code
  cityCode: null, //市Code
  districtCode: null, //区Code
  address: null, //详细地址
  isEnable: true, //启用状态
  sort: 1, //排序
};

/**
 * 数据格式对象
 */
export const departmentDataTitle = [
  { title: "部门名称", name: "companyName", width: "380" },
  { title: "负责人", name: "leader", width: "220" },
  { title: "联系电话", name: "phone", width: "220" },
  { title: "联系邮箱", name: "email", width: "280" },
  { title: "部门排序", name: "sort", width: "180" },
  { title: "创建人", name: "createBy", width: "200" },
  { title: "创建时间", name: "createTime", width: "180" },
  { title: "更新人", name: "updateBy", width: "200" },
  { title: "更新时间", name: "updateTime", width: "180" },
];
